<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!-- <script src="./zuoye.js"></script> -->
    <style>
        td:first-child {
            text-align: right;
        }
    </style>
</head>

<body>
    <form action="/addMessage" method="post">
        <table>
            <caption>
                <h2>表单页</h2>
            </caption>
            <tr>
                <td>昵称：</td>
                <td><input type="text" name="nickname"></td>
            </tr>
            <tr>
                <td>赞或踩：</td>
                <td>
                    <input type="radio" name="yesOrNo" value="赞">赞
                    <input type="radio" name="yesOrNo" value="踩">踩
                </td>
            </tr>
            <tr>
                <td>留言：</td>
                <td>
                    <textarea class="aaa" name="message" cols="30" rows="10"></textarea>
                </td>
            </tr>
            <tr>
                <td></td>
                <td>
                    <input type="reset">
                    <input type="submit">
                </td>
            </tr>
        </table>
    </form>
</body>
<script>
    let arr = [
        { "nickname": "穿越火线", "yesOrNo": "踩", "message": "狗都不玩" },
        { "nickname": "穿越火线", "yesOrNo": "踩", "message": "狗都不玩" },
        { "nickname": "穿越火线", "yesOrNo": "踩", "message": "狗都不玩" },
        { "nickname": "王者荣耀", "yesOrNo": "踩", "message": "垃圾游戏撒烦烦烦" },
        { "nickname": "王者荣耀", "yesOrNo": "踩", "message": "静安分局看电视剧" },
        { "nickname": "王者荣耀", "yesOrNo": "踩", "message": "沙发上" },
        { "nickname": "王者荣耀", "yesOrNo": "踩", "message": "s方法" },
        { "nickname": "王者荣耀", "yesOrNo": "踩", "message": "大方地说" }
    ]
    console.log(arr)





    arr.forEach(a => {
        console.log(a.nickname, a.yesOrNo, a.message)
    })






    let brr = [1, 2, 3, 4, 5, 6, 7, 8,]
    console.log(brr)
</script>

</html>